package cn.iocoder.yudao.module.system.api.cp;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.system.api.cp.dto.RadarSaveReqVO;
import cn.iocoder.yudao.module.system.api.dept.dto.DeptRespDTO;
import cn.iocoder.yudao.module.system.api.dept.dto.DeptSaveReqVO;
import cn.iocoder.yudao.module.system.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.security.PermitAll;
import javax.validation.Valid;

/**
 * @Author LiZhiMin
 * @Date 2024/8/15 10:09
 */
@FeignClient(name = ApiConstants.NAME) // TODO 芋艿：fallbackFactory =
@Tag(name = "RPC 服务 - 营销中心-雷达api")
public interface RadarApi {
    String PREFIX = ApiConstants.PREFIX + "/radar";

    @PostMapping(PREFIX + "/sendRadarMessage")
    @Operation(summary = "发送雷达信息-根据类发送-转发|开始访问|结束访问信息")
    @PermitAll
    CommonResult<Boolean> sendRadarMessage(@Valid @RequestBody RadarSaveReqVO saveReqVO);
}
